body{
    width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
}
.mainpage_block{
    width: auto;
    height: 100vh;
    
}

.wood_small1 img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: 0 50%;
}

.box {
    width: 40%;
    height: 100vh;
}
@media screen and (min-width: 481px){
    .wood_block{
        height: calc( 100vh - 80px);
        display: flex;
        align-items: center;
    }
    .wood_small1{
        width: 25%;
        height: 90%;
        display: block;
        
    }
    .wood_small1 figure{
        height: 100%;
        margin: auto;
        overflow: hidden;
        position: relative;
    }
    .wood_small1 figure figcaption{
        transition: all .3s;
        opacity: 0;
        background: rgba(0, 0, 0, 0.319);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        color: #fff;
    }
    .wood_small1 figure:hover figcaption{
        opacity: 1;
    }
    .wood_small1 figure figcaption p{
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        text-align: center;
        width: 90%;
    }

}
@media screen and (max-width: 480px){
    .wood_block{
        height: calc( 100vh - 80px);
        
    }
    .wood_small1{
        width: 100%;
        height: 50%;
        display: block;
        
    }
    .wood_small1 figure{
        height: 100%;
        margin: auto;
        overflow: hidden;
        position: relative;
    }
    .wood_small1 figure figcaption{
        transition: all .3s;
        opacity: 0;
        background: rgba(0, 0, 0, 0.319);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        color: #fff;
    }
    .wood_small1 figure:hover figcaption{
        opacity: 1;
    }
    .wood_small1 figure figcaption p{
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        text-align: center;
        width: 90%;
    }
}